import request from '@/utils/request'

export function pageList(query) {
  return request({
    url: '/system/otherModule/pageList',
    method: 'get',
    params: query
  })
}

export function getotherModule(OtherModuleId) {
  return request({
    url: '/system/otherModule/' + OtherModuleId,
    method: 'get'
  })
}

export function addOtherModule(data) {
  return request({
    url: '/system/otherModule',
    method: 'post',
    data: data
  })
}

export function editOtherModule(data) {
  return request({
    url: '/system/otherModule',
    method: 'put',
    data: data
  })
}

export function delotherModuleIds(otherModuleIds) {
  return request({
    url: '/system/otherModule/' + otherModuleIds,
    method: 'delete'
  })
}